using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Andrewl.XnaHelpers.Storage;
using Microsoft.Xna.Framework.Storage;

namespace Andrewl.XnaHelpers
{
    public static class StorageHelper 
    {
        public static XboxStorage Storage
        { get { return XnaHelpers.storage; } }

        public static StorageDevice Device
        { get { return XnaHelpers.storage.device; } set { XnaHelpers.storage.device = value; } }

        public static StorageContainer Container
        { get { return XnaHelpers.storage.container; } set { XnaHelpers.storage.container = value; } }

        public static string Path
        { get { return XnaHelpers.storage.Path; } }

        public static bool IsConnected
        { get { return XnaHelpers.storage.IsConnected; } }

        public static long FreeSpace
        { get { return XnaHelpers.storage.FreeSpace; } }

        public static long UsedSpace
        { get { return XnaHelpers.storage.UsedSpace; } }

        public static void OpenContainer(string name)
        {
            XnaHelpers.storage.OpenContainer(name);
        }

        public static void OpenContainer()
        {
            XnaHelpers.storage.OpenContainer();
        }

        public static void CloseContainer()
        {
            XnaHelpers.storage.container.Dispose();
        }

        public static void DeleteContainer(string name)
        {
            XnaHelpers.storage.DeleteContainer(name);
        }

        public static void DeleteContainer()
        {
            XnaHelpers.storage.DeleteContainer();
        }
    }
}